import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/subscriber',
  component: Layout,
  redirect: '/subscriber/index',
  name: 'subscriber',
  meta: {
    title: '小程序用户',
    icon: 'ph:user-gear-light',
  },
  children: [
    {
      path: 'index',
      name: 'subscriberIndex',
      component: () => import('@/views/subscriber/index.vue'),
      meta: {
        title: '小程序用户列表',
        menu: false,
        breadcrumb: false,
        activeMenu: '/subscriber',
      },
    },
    // {
    //   path: 'detail',
    //   name: 'drawactprizeDetail',
    //   component: () => import('@/views/drawactprize/detail.vue'),
    //   meta: {
    //     title: '抽奖活动奖品配置',
    //     auth: ['permission.browse'],
    //     menu: false,
    //     activeMenu: '/drawactprize',
    //   },
    // },
  ],
}

export default routes
